package com.scse.bms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.scse.bms.entity.RecommendDO;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * @Title: RecommendMapper
 * @Author: 吴赠禹
 * @Date: 2021/2/22 20:15
 * @Version: 1.0
 * @Description: TODO
 */

@Repository
@Mapper
public interface RecommendMapper extends BaseMapper<RecommendDO> {


    /**
     * 删除推荐
     * @param bookId
     * @return
     */
    @Delete("delete from t_recommend where book_id = #{bookId}")
    int deleteRecommend(Integer bookId);

}
